//
//  PolicyManager.h
//  gdemm
//
//  Created by 乔明超 on 16/3/29.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HeartBeat.h"
#import "PolicyHandler.h"
#define MSG_SHOWTOAST 1
#define MSG_SHOWPOLICIES 2;
@interface PolicyManager : NSObject<OnlineStateListener>
@property (nonatomic,assign) BOOL mIsLocalPolicy;

+ (instancetype)getInstance;
- (void)updatePolicyWithsilent:(BOOL)silent;
- (NSString *)getPolicyFile;
- (BOOL)downloadPolicy;
- (void)addPolicyHandlers;
- (void)dispatchPolicy;

/**
 *  清除区域策略和用户策略
 */
- (void)clearPolicies;
@end
